﻿@using Library
@model Library.Models.Brand

@{
    var brand = Model.BrandCultures.SingleOrDefault(pcc => pcc.Culture == NOWCulture.CurrentCulture) ?? Model.BrandCultures.SingleOrDefault();
}
@if (brand != null)
{
    <tr data-id="@Model.Id">
        <th scope="row">@Html.DisplayFor(m => brand.Name)</th>
        <td>@Html.DisplayFor(m => brand.Description)</td>
        <td>
            <button type="button" class="btn btn-sm btn-primary" data-editor="edit" data-id="@Model.Id"><span class="glyphicon glyphicon-edit"></span>@NOWCulture.GetString("Edit")</button>
            <button type="button" class="btn btn-sm btn-danger" data-editor="remove" data-id="@Model.Id"><span class="glyphicon glyphicon-remove"></span>@NOWCulture.GetString("Remove")</button>
        </td>
    </tr>
}

